import flash.events.Event;

public function init():void
{
	loginService.send();
}

public function loginCheck():void
{
	if (loginService.lastResult.vulpes.user.verified == '1') {
		loginViewStack.selectedChild = mainVBox;
	} else {
		loginViewStack.selectedChild = loginCanvas;
	}
}

public function checkResult(service:HTTPService):void
{
	if (service.lastResult.vulpes.error == '1') {
		currentState = 'warning';
	} else {
		currentState = '';
	}
}